#include<stdio.h>
#include<stdlib.h>

void process(void *ptr,size_t size){
	int* int_ptr=(int*)ptr;
	for(size_t i=0;i<size/(sizeof(int));++i){
		printf("%d ",int_ptr[i]);
	}
	printf("\n");
}

int main(){
	int* arr=(int*)malloc(5*sizeof(int));
	for(int i=0;i<5;i++){
		arr[i]=i;
	}
	process((void*)arr,5*sizeof(int));
	free(arr);
	return 0;
}
